﻿using System;
using System.Net;

namespace Definition.WebImport
{
    internal static class WebClientRequest
    {
        internal static byte[] GetBytes(string request)
        {
            if (String.IsNullOrEmpty(request))
                return new byte[] { };

            var webClient = new WebClient();
            return webClient.DownloadData(new Uri(request));
        }
    }
}
